package cn.itsource.service.impl;

import cn.itsource.pojo.domain.DriverAuthMaterial;
import cn.itsource.pojo.domain.DriverMaterialAuthLog;
import cn.itsource.mapper.DriverMaterialAuthLogMapper;
import cn.itsource.service.IDriverMaterialAuthLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 材料审核日志 服务实现类
 * </p>
 *
 * @author ????
 * @since 2024-06-13
 */
@Service
public class DriverMaterialAuthLogServiceImpl extends ServiceImpl<DriverMaterialAuthLogMapper, DriverMaterialAuthLog> implements IDriverMaterialAuthLogService {

    @Override
    public void create(DriverAuthMaterial material) {
        DriverMaterialAuthLog log = new DriverMaterialAuthLog();
        log.setAuthMaterialId(material.getId());
        log.setRealAuthStatus(material.getRealAuthStatus());
        log.setAuditTime(material.getAuditTime());
        log.setAuditUserId(material.getAuditUserId());
        log.setAuditRemark(material.getAuditRemark());
        log.setCreateTime(material.getAuditTime());
        super.save(log);
    }
}
